package com.cts.tmall.dal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@Accessors(chain = true)
@TableName(value = "tmall_limit_sale", autoResultMap = true)
public class TmallLimitSale {
    @TableId(value = "event_no", type = IdType.AUTO)
    private Long eventNo;
    private String eventName;
    private String eventDesc;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date eventStartTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date eventEndTime;
    private String needPreHeat;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date preHeatTime;
    private String discountType;
    private String orderCancelTime;
    private String status;
    private Long createUserId;
    private Date createTime;
    private Date updateTime;
}
